package com.huawei.esdk.tp.cxf.enumgen;

import javax.xml.bind.annotation.XmlEnumValue;

public enum ParticipantType
{
    @XmlEnumValue("Site")
    SITE("Site"), 
    @XmlEnumValue("UpperLevelParticipant")
    UPPER_LEVEL_PARTICIPANT("UpperLevelParticipant"), 
    @XmlEnumValue("LowerLevelParticipant")
    LOWER_LEVEL_PARTICIPANT("LowerLevelParticipant"), 
    CGW("CGW"), 
    VSD("VSD");
    
    private final String value;
    
    ParticipantType(String v)
    {
        value = v;
    }
    
    public String value()
    {
        return value;
    }
    
    public static ParticipantType fromValue(String v)
    {
        for (ParticipantType c : ParticipantType.values())
        {
            if (c.value.equals(v))
            {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
}
